package cn.zjz.day01.demo03Array;

public class DemoArrayMaxValue {
    public static void main(String[] args) {
        int[] arr={2,3,5,67,3,4,5,8,23,89};
        int max=arr[0];
        for (int i = 1; i < arr.length; i++){
            if(arr[i]>max){
                max=arr[i];
            }
        }
        System.out.println(max);

    }
}
